import { get, post } from '@/utils/AxiosRequest'

// GET请求
get('/api/data', { id: 123 }, { 'Authorization': 'Bearer token123' })
  .then(response => console.log(response))
  .catch(error => console.error(error))

// POST请求
post('/api/save', { name: 'test' }, { 'X-Custom-Header': 'value' })
  .then(response => console.log(response))
  .catch(error => console.error(error))